package cn.edu.ctbu.datajpa01.service;

import cn.edu.ctbu.datajpa01.domain.Achievement;
import cn.edu.ctbu.datajpa01.domain.Schedule;
import cn.edu.ctbu.datajpa01.domain.Student;
import cn.edu.ctbu.datajpa01.vo.AchievementVo;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author losen
 * @version 1.0
 * @DateTime 2023/1/10 16:50
 */
public interface AchievementService {

    List<Achievement> findAll();

    /**
     * 查询全部
     * @param pageable
     * @return
     */
    Page<Achievement> findAll(Pageable pageable);

    /**
     * 带过滤
     * @param studentExample
     * @param pageable
     * @return
     */
    Page<Achievement> findAll(Example<Achievement> studentExample, Pageable pageable);

    void delete(Achievement achievement);

    void delete(Integer id);

    Achievement getById(Integer id);

    Achievement insert(Achievement achievement);

    Achievement update(Achievement achievement);

    void deleteByName(String name);

}
